package com.housing.domain.bo;

import com.housing.domain.RentalConfig;
import com.zmetaport.common.core.validate.AddGroup;
import com.zmetaport.common.core.validate.EditGroup;
import com.zmetaport.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;

/**
 * 【请填写功能名称】业务对象 rental_config
 *
 * @author chensm
 * @date 2024-12-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = RentalConfig.class, reverseConvertGenerate = false)
public class RentalConfigBo extends BaseEntity {

    /**
     * 
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 1 套房 2整栋
     */
    @NotNull(message = "1 套房 2整栋不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer type;

    /**
     * 
     */
    @NotNull(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long sourceId;

    /**
     * 租金
     */
    @NotNull(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal rent;

    /**
     * 币种 1CNY 2USD 3EUR
     */
    @NotNull(message = "1CNY 2USD 3EUR不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long currency;

    /**
     * 1月交 2季度交 3趸交
     */
    @NotNull(message = "1月交 2季度交 3趸交不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long rentType;

    
    /**
     * 押金
     */
    @NotNull(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal deposit;


}
